package com.csdj.wenjun.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.csdj.wenjun.entity.Manhe;
import com.csdj.wenjun.entity.Suipianjilu;
import com.csdj.wenjun.service.SuipianjiluService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wenjun
 * @since 2022-01-11
 */
@RestController
@RequestMapping("/suipianjilu")
public class SuipianjiluController {
    @Autowired
    private SuipianjiluService suipianjiluService;
    @GetMapping("/selectjiluid")
    public List<Suipianjilu> selectmanheid(@RequestParam String id, @RequestParam String ptid){
        QueryWrapper<Suipianjilu> queryWrapper=new QueryWrapper<>();
        queryWrapper.lambda().eq(Suipianjilu::getUserid,id).eq(Suipianjilu::getPtid,ptid);
        return suipianjiluService.list(queryWrapper);
    }
}
